import { DescItem } from "/@/components/Description";
import { GenderEnum } from "/@/enums/genderEnum";
import { defaultDescRender } from "/@/hooks/core/useDefault";

export const descSchema: DescItem[] = [
  {
    field: "userCode",
    label: "学号",
    contentMinWidth: 300,
  },
  {
    field: "userName",
    label: "姓名",
  },
  {
    field: "gender",
    label: "性别",
    render: (value) => {
      switch (value) {
        case GenderEnum.Female:
          return "女";
        case GenderEnum.Male:
          return "男";
        default:
          return "保密";
      }
    },
  },
  {
    field: "introduction",
    label: "个人介绍",
    render: defaultDescRender,
  },
];
